package com.tianxiao.faas.application.aop;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

public class AuthenticationContext implements Serializable {
    private static final long serialVersionUID = 1768078483173035906L;

    private Long userId;

    public AuthenticationContext(Long userId) {
        this.userId = userId;
    }

    public AuthenticationContext() {
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
